function disp_del(id) {
   if(id=='-1') {notice('Error: can not delete this event'); return;}
   else notice('Event has been deleted');
   var el = $('de'+id);
   new Effect.Fade(el);
   var el=$('item_'+id);
   new Effect.BlindUp(el,{delay:1});
   }
function del_event(id) {
   if (confirm('Delete this event ?')) {
      var el = $('de'+id);
      el.src = '/images/loading.gif';
      new Ajax.Request('/calendar/delete/'+id, {asynchronous:true, evalScripts:true, onComplete:function(request){disp_del(request.responseText)}});
      }
   return false;
   }
